package day1027.dem2.one;



/**
 * @program: fanxing
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-10-27 16:24
 **/
public class Test {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        //通过类名获取
        Class<Dog>  dogClass = Dog.class;
        Dog dog = dogClass.newInstance();
        Dog dog1 = dogClass.newInstance();
        System.out.println(dog==dog1);
    }
}
class Dog{

}